<link href="<?php echo base_url("public/template/frontend/css/ui-lightness/jquery-ui-1.10.4.min.css") ?>" rel="stylesheet" type="text/css"/>

<div class="list-content">
    <div class="title-content">
        <div class="title-name">
            <h2>
                <img src="<?php echo base_url("public/template/frontend/images") ?>/title-pro.png" alt="title">
                THANH TOÁN
            </h2>
            <span>&nbsp;</span>
        </div>                                                      
    </div><!--title-content-->
    <div class="clear-both"></div>
    <div class="main-content">                            
        <form action="" method="post" id="payment" class="normal-form">
            <fieldset>
                <legend>Thông tin khách hàng</legend>
                <p>
                    <label>Tên: </label>
                    <input type="text" name="data[name]" value="<?php if(isset($cus['name'])) echo $cus['name']; else echo set_value('data[name]');?>" class="vali"/><?php echo form_error('data[name]'); ?>
                </p>
                <p>
                    <label>Email: </label>
                    <input type="text" name="data[email]" value="<?php if(isset($cus['email'])) echo $cus['email']; else echo set_value('data[email]');?>" class="vali"/><?php echo form_error('data[email]'); ?>
                </p>
                <p>
                    <label>Số điện thoại: </label>
                    <input type="text" name="data[phone]" value="<?php if(isset($cus['phone'])) echo $cus['phone']; else echo set_value('data[phone]');?>" class="vali"/><?php echo form_error('data[phone]'); ?>
                </p>
                <p>
                    <label>Địa chỉ giao hàng: </label>
                    <input type="text" name="data[address]" value="<?php if(isset($cus['address'])) echo $cus['address']; else echo set_value('data[address]');?>" class="vali"/><?php echo form_error('data[address]'); ?>
                </p>
                <p>
                    <label>Yêu cầu: </label>
                    <textarea name="data[req]" class="vali"></textarea><br/>
                </p>
                <script>
                    $(function() {
                        $("#datepicker").datepicker({ dateFormat: 'yy-mm-dd' });
                    });
                </script>
                <p>
                    <label>Ngày giao hàng: </label>
                    <input type="text" name="data[deli_date]" id="datepicker" value="<?php echo set_value('data[deli_date]');?>" class="vali"/><?php echo form_error('data[deli_date]'); ?>
                </p>
                <p>
                    <label></label>
                    <a href="<?php echo base_url("frontend/cart");?>">Trở lại</a>
                    <input type="submit" name="order" value="Tiếp tục"/>
                </p>
            </fieldset>
        </form>
    </div><!--main-content-->                        
</div><!--list-content-->